package com.viish.android.apps.buildbot.job;

/* Android Buildbot Manager
Copyright (C) 2012  Sylvain "Viish" Berfini

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */

import java.sql.Timestamp;

import org.json.JSONObject;

public class Step
{
	private boolean	isFinished;
	private boolean	isStarted;
	private String	name;
	private int		stepNumber;
	private String	text;
	private Timestamp	time_start, time_end;

	public Step(boolean isFinished, boolean isStarted, String name,
			int stepNumber, String text, Timestamp timeStart, Timestamp timeEnd)
	{
		super();
		this.isFinished = isFinished;
		this.isStarted = isStarted;
		this.name = name;
		this.stepNumber = stepNumber;
		this.text = text;
		this.time_start = timeStart;
		this.time_end = timeEnd;
	}

	public Step(JSONObject o)
	{
		super();
	}

	public boolean isFinished()
	{
		return isFinished;
	}

	public void setFinished(boolean isFinished)
	{
		this.isFinished = isFinished;
	}

	public boolean isStarted()
	{
		return isStarted;
	}

	public void setStarted(boolean isStarted)
	{
		this.isStarted = isStarted;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public int getStepNumber()
	{
		return stepNumber;
	}

	public void setStepNumber(int stepNumber)
	{
		this.stepNumber = stepNumber;
	}

	public String getText()
	{
		return text;
	}

	public void setText(String text)
	{
		this.text = text;
	}

	public Timestamp getTime_start()
	{
		return time_start;
	}

	public void setTime_start(Timestamp timeStart)
	{
		time_start = timeStart;
	}

	public Timestamp getTime_end()
	{
		return time_end;
	}

	public void setTime_end(Timestamp timeEnd)
	{
		time_end = timeEnd;
	}
}
